#ifndef __SERVERCONNECTOR_H__
#define __SERVERCONNECTOR_H__

#include "../Common/Connector.h"
#include "../Common/Packet.hpp"

class CServerConnector : public CConnector
{
public:
			CServerConnector( boost::asio::io_service& io_service, const std::string& host, const std::string& service );
	virtual ~CServerConnector( void );

private:
	virtual void OnConnectFailed( const boost::system::error_code& e );
	virtual void OnReadFailed( const boost::system::error_code& e, size_t bytes_transferred );
	virtual void OnWriteFailed( const boost::system::error_code& e );
	virtual void OnConnectSuccessed( void );
	virtual void OnReadSuccessed( void );
	virtual void OnWriteSuccessed( void );

private:
	std::vector< SCommonPacket * > m_RecvPacket;
};

#endif	// __SERVERCONNECTOR_H__